#ifndef FRMSETTING_H
#define FRMSETTING_H

#include <QWidget>

class QAbstractButton;

namespace Ui {
class FrmSetting;
}

class FrmSetting : public QWidget
{
    Q_OBJECT

public:
    explicit FrmSetting(QWidget *parent = 0);
    ~FrmSetting();

private:
    Ui::FrmSetting *ui;
    QList<QAbstractButton *> btnsLeft;
    QList<int> iconMains;

    //根据QSS样式获取对应颜色值
    QString borderColor;
    QString normalBgColor;
    QString darkBgColor;
    QString normalTextColor;
    QString darkTextColor;

private:
    void initForm();
    void initLeftMain();
    void initStyle();
    void getQssColor(const QString &qss, const QString &flag, QString &color);
    void getQssColor(const QString &qss, QString &textColor,
                     QString &panelColor, QString &borderColor,
                     QString &normalColorStart, QString &normalColorEnd,
                     QString &darkColorStart, QString &darkColorEnd,
                     QString &highColor);

private slots:
    void leftClick();
};

#endif // FRMSETTING_H
